package com.daxt.model.dic;

public enum ClientType {
	
	ADMIN("ADMIN","后台"), //后台
	SSO("SSO","单点登录"), //单点登录  cas
	WEB("WEB","网页端"), // 网页端
	WAP("WPA","移动端"), // 移动端
	APP("APP","手机"),//手机
	WX("WX","微信"),// 微信
	XCX("XCX","小程序");//小程序
	
	private String key;
	private String value;
	
	private ClientType(String key, String value) {
		this.key = key;
		this.value = value;
	}
	
	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	

	public static boolean hasKey(String key) {
		ClientType[] values = ClientType.values();
		for (ClientType type : values) {
			if(type.name().equals(key)) {
				return true;
			}
		}
		return false;
	}
}
